package com.ruoyi.sys.vehile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sys.vehile.mapper.TbMonthCardListMapper;
import com.ruoyi.sys.vehile.domain.TbMonthCardList;
import com.ruoyi.sys.vehile.service.ITbMonthCardListService;

/**
 * 月卡列Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-24
 */
@Service
public class TbMonthCardListServiceImpl implements ITbMonthCardListService
{
    @Autowired
    private TbMonthCardListMapper tbMonthCardListMapper;

    /**
     * 查询月卡列
     *
     * @param mcId 月卡列主键
     * @return 月卡列
     */
    @Override
    public TbMonthCardList selectTbMonthCardListByMcId(Long mcId)
    {
        return tbMonthCardListMapper.selectTbMonthCardListByMcId(mcId);
    }

    /**
     * 查询月卡列列表
     *
     * @param tbMonthCardList 月卡列
     * @return 月卡列
     */
    @Override
    public List<TbMonthCardList> selectTbMonthCardListList(TbMonthCardList tbMonthCardList)
    {
        return tbMonthCardListMapper.selectTbMonthCardListList(tbMonthCardList);
    }

    /**
     * 新增月卡列
     *
     * @param tbMonthCardList 月卡列
     * @return 结果
     */
    @Override
    public int insertTbMonthCardList(TbMonthCardList tbMonthCardList)
    {
        return tbMonthCardListMapper.insertTbMonthCardList(tbMonthCardList);
    }

    /**
     * 修改月卡列
     *
     * @param tbMonthCardList 月卡列
     * @return 结果
     */
    @Override
    public int updateTbMonthCardList(TbMonthCardList tbMonthCardList)
    {
        return tbMonthCardListMapper.updateTbMonthCardList(tbMonthCardList);
    }

    /**
     * 批量删除月卡列
     *
     * @param mcIds 需要删除的月卡列主键
     * @return 结果
     */
    @Override
    public int deleteTbMonthCardListByMcIds(Long[] mcIds)
    {
        return tbMonthCardListMapper.deleteTbMonthCardListByMcIds(mcIds);
    }

    /**
     * 删除月卡列信息
     *
     * @param mcId 月卡列主键
     * @return 结果
     */
    @Override
    public int deleteTbMonthCardListByMcId(Long mcId)
    {
        return tbMonthCardListMapper.deleteTbMonthCardListByMcId(mcId);
    }
}
